package com.yanqu.road.entity.union.honors;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_c_union_honor_history", desc = "商会荣誉点")
public class UnionHistoryHonorsRecordData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "商会uid")
    private String unionUid;

    @FieldTypeAnnotation(update = true, desc = "活动id")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "活动类型")
    private int activityType;

    @FieldTypeAnnotation(update = true, desc = "活动小类型")
    private int activityChildType;

    @FieldTypeAnnotation(desc = "获得时间")
    private int getTime;

    @FieldTypeAnnotation(desc = "获得荣誉点")
    private int honors;

    @FieldTypeAnnotation(desc = "参与区服")
    private String serverList;

    @FieldTypeAnnotation(desc = "排名")
    private int rank;

    @FieldTypeAnnotation(desc = "道具id")
    private int goodId;

    @FieldTypeAnnotation(desc = "参与商会")
    private String unionNames = "";

  public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        if(!Objects.equals(this.unionUid, unionUid)) {
            this.unionUid = unionUid;
            setUpdateOption();
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public int getActivityType() {
        return activityType;
    }

    public void setActivityType(int activityType) {
        if(this.activityType != activityType) {
            this.activityType = activityType;
            setUpdateOption();
        }
    }

    public int getActivityChildType() {
        return activityChildType;
    }

    public void setActivityChildType(int activityChildType) {
        if(this.activityChildType != activityChildType) {
            this.activityChildType = activityChildType;
            setUpdateOption();
        }
    }

    public int getGetTime() {
        return getTime;
    }

    public void setGetTime(int getTime) {
        if(this.getTime != getTime) {
            this.getTime = getTime;
            setUpdateOption();
        }
    }

    public int getHonors() {
        return honors;
    }

    public void setHonors(int honors) {
        if(this.honors != honors) {
            this.honors = honors;
            setUpdateOption();
        }
    }

    public String getServerList() {
        return serverList;
    }

    public void setServerList(String serverList) {
        this.serverList = serverList;
        setUpdateOption();
    }

    public int getRank() { return rank; }

    public void setRank(int rank) {
        if(this.rank != rank){
            this.rank = rank;
            setUpdateOption();
        }
    }

    public int getGoodId() {
        return goodId;
    }

    public void setGoodId(int goodId) {
        if(this.goodId != goodId){
            this.goodId = goodId;
            setUpdateOption();
        }
    }

    public String getUnionNames() {
        return unionNames;
    }

    public void setUnionNames(String unionNames) {
        if(!Objects.equals(this.unionNames, unionNames)){
            this.unionNames = unionNames;
        }
    }
}
